package redis

import "time"

// SessionHandler is adoption of PHP SessionHandlerInterface
// For more reference: https://www.php.net/manual/en/class.sessionhandlerinterface.php
type SessionHandler interface {
	Close()
	// Gc(maxLifeTime int) int
	Read(id string) (string, error)
	Write(id, sessionData string) error
	Persist(id string) error
	Remove(id string) error
	TTL(id string) time.Duration
	SetExpiration(expire time.Duration)
}
